Copyright © Cloud Software Group, Inc. All Rights Reserved |
You can open and build the project using IntelliJ, or you can extract the files from the \src directory and create a project using those files in whatever Java development tool you desire.InstallationHome\iprocessclientbrowser\Samples\JSPFormExamplewhere InstallationHome is the directory in which the installer places administrative files, such as the uninstaller, documentation, and sample code. This defaults to C:\tibco on Windows systems, and /opt/tibco on UNIX systems, but can be specified as a different directory when the TIBCO iProcess Workspace is installed.If you build the project in IntelliJ, move the resulting JSPFormExample.war file to the webapps directory on Tomcat and start Tomcat. The form example will extract itself into a directory called JSPFormExample under TomcatHome\webapps.
1. Set the ExternalFormURI parameter in the Action Processor’s configuration file, apConfig.xml. This specifies the base URL of the Web Application Server (Tomcat in this case) that is hosting your JSP Forms. For information about this parameter, see External Form URI.
2. Create a procedure and define a normal step, or import JSPForm.xfr (which is included in the JSPFormExample project).
4.
5. Enter the location of the JSPForm.jsp file. Don't enter the full URL as the base URL location is defined in the ExternalFormURI parameter (see step 1). Only specify the portion of the URL that is unique to the step.
7. Edit the JSPFormExample example project for the desired form layout and fields to be displayed.Define the field names in the fieldNames array, the types in the fieldTypes array, and the date format in the dateFormat string.The field names should correspond to the iProcess Engine procedure field names. The arrays are defined in JSPForm.jsp, as follows:
The dateFormat variable can be set to “MDY”, “DMY”, or “YMD”, to indicate the order of the day, month, and year in date fields. (Time fields will be displayed in the hh:mm format.)The position and look of these fields can be defined in the JSPForm.css cascading style sheet. For example:The JSPForm.jsp form makes use of the interfaces defined in the JSPFormLib.java library in order to do a start case, lock item, release item, keep item, and undo item. These interfaces construct and make the request to the Action Processor. The JSPFormLib public interfaces available are as follows:The constructor initiates the JSPFormLib with the request and field information.
The getRequestType method returns one of the following static int values:This method returns the details of the XML generated by an Undo, Keep or Release button click on the form.
This method creates and submits an Action Processor StartCase request.
This method creates and submits an Action Processor UndoItems request.
This method creates and submits an Action Processor LockItems request.
This method creates and submits an Action Processor KeepItems request.
This method creates and submits an Action Processor ReleaseItems request.
Copyright © Cloud Software Group, Inc. All Rights Reserved |